﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wekit.Model.Auth
{
    [Serializable]
    public  class Role
    {
        public Role()
        { }

        /// <summary>
        /// 角色标识
        /// </summary>
        public virtual string Id { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        public virtual string Name { get; set; }

        /// <summary>
        /// 根据角色获取角色所拥有的用户
        /// </summary>
        public virtual ICollection<UserRole> UserRoles { get; set; }

        /// <summary>
        /// 角色编码
        /// </summary>
        public virtual string Code { get; set; }

        /// <summary>
        /// 角色创建时间
        /// </summary>
        public virtual DateTime Created { get; set; }
    }
}
